<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t&iacute;tulo</title>
<script type="text/javascript" src="http://127.0.0.1/CodeIgniter/assets/development-bundle/ui/jquery.ui.position.js"></script>
<script type="text/javascript" src="http://127.0.0.1/CodeIgniter/assets/development-bundle/ui/jquery.ui.autocomplete.js"></script>
	
	<script>
	$(function() {
		var afilliates = new Array(); 
			<?php
			for ($i=0; $i<=count($names)-1; $i++)
			{
			echo "afilliates[".$i."] = '".$names[$i]."';";
			}
			?>
		$( "#search_afilliates" ).autocomplete({
			source: afilliates,
			matchContains: true,
			minChars: 2,
			autoFill: true
		});
	});
	</script>
    <style type="text/css">
<!--
.Estilo2 {
	font-size: 18px;
	font-weight: bold;
}
-->
    </style>
</head>

<body>
<table width="538" border="0" align="right">
        <tr>
          <td colspan="2">&nbsp;</td>
        </tr>
        <tr>
          <td width="292"><div align="right"><span class="Estilo2">Confirme Solicitud de Agencias</span></div></td>
          <td width="236"><img src="http://127.0.0.1/CodeIgniter/img/agregar.jpg" />Agregue Nuevas Agencias...</td>
        </tr>
        <tr>
          <td colspan="2"><div align="center"></div></td>
        </tr>
        <?php 
		foreach ($info_Hotel as $aux)
		{
			$nameHotel = $aux['name'];
		}
		
		foreach ($AgencyRequests as $row)
		{
		?>
        <tr>
          <td colspan="2"><table width="100%" border="0">
            <tr>
              <td width="17%" rowspan="4"><div><img src="http://127.0.0.1/CodeIgniter/img/hoteles.com.ve.jpg" width="84" height="52" /></div></td>
              <td width="68%"><strong>Nombre</strong>: <?php echo $row['nameTravelagency'];?></td>
              <td width="15%" rowspan="4">
              <div><img src="http://127.0.0.1/CodeIgniter/img/agregar.jpg" /></div><a href="<?php echo base_url(); ?>/Travelagencycontroller/confirmRequest/<?php echo $row['id_travel_agency']; ?>/<?php echo $id_hotel; ?>/<?php echo $row['nameTravelagency'];?>/<?php echo $nameHotel;?>/<?php echo $username; ?>/<?php echo $id_user; ?>">SI</a> / <a href="#">NO</a>            </td>
            </tr>
            <tr>
              <td height="24"><strong>Ubicacion:</strong> <?php echo $row['namePlace'];?></td>
            </tr>
            <tr>
              <td><strong>Dirección:</strong> <?php echo $row['comercialAddress'];?></td>
            </tr>
            <tr>
              <td><strong>Compañía</strong>: <?php echo $row['nameCompany'];?></td>
            </tr>
          </table></td>
 		 </tr>
         <?php } //end foreach?>
      </table>
</body>
</html>
